package com.example.mallone11.plateform.handler;


import com.example.mallone11.plateform.service.PlateformService;
import com.example.mallone11.utils.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("plateform")
public class PlateformHandler {

    @Resource
    private PlateformService plateformService;

    @GetMapping("list")
    public R list() { return plateformService.list().size() > 0 ? R.ok(plateformService.list()) : R.fail("暂无商家入驻申请"); }
}















